package com.mooke.service.impl;


import com.mooke.dao.Impl.AdminDaoImpl;
import com.mooke.entity.*;
import com.mooke.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 黄强 李鹏龙
 *
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminService {

    //使用spring 自动注入

    @Autowired
    private AdminDaoImpl adminDao;

    @Override
    public List<College> finAll(String id, Map<String,Object> map){

        return adminDao.finAll(id,map);
    }

    @Override
    public boolean removeLoginStudent(String id, Map<String, Object> map){
        return adminDao.removeLoginStudent(id,map);
    };

    @Override
    public List<Teacher> findByNameTeacher(String id, Map<String,Object> map){

        return adminDao.findByNameTeacher(id,map);
    }

    public List<Teacher> findByPagingTeacher(String id, Map<String,Object> map){

        return adminDao.findByPagingTeacher(id,map);
    }

    @Override
    public Integer getCountTeacher(String id,Map<String,Object> map){
        return  adminDao.getCountTeacher(id,map);
    };

    @Override
    public boolean checkTeacher(String id, Teacher teacher){
        return adminDao.checkTeacher(id,teacher);
    };

    @Override
    public boolean  addTeacher(String id,Teacher teacher){
        return adminDao.addTeacher(id,teacher);
    };

    @Override
    public boolean  addTeacherLogin(String id,Teacher teacher){
        return adminDao.addTeacherLogin(id,teacher);
    };

    @Override
    public boolean  updateTeacher(String id,Teacher teacher){
        return adminDao.updateTeacher(id,teacher);
    };

    @Override
    public boolean removeTeacher(String id, Map<String, Object> map){
        return adminDao.removeTeacher(id,map);
    };

    @Override
    public boolean queryMoneyleave(String id, Map<String, Object> map){
        return adminDao.queryMoneyleave(id,map);
    };
    @Override
    public boolean queryMoneyget(String id, Map<String, Object> map){
        return adminDao.queryMoneyget(id,map);
    };

    @Override
    public List<Teacher> leave(String id, Map<String,Object> map){

        return adminDao.leave(id,map);
    }
    @Override
    public List<Teacher> get(String id, Map<String,Object> map){

        return adminDao.get(id,map);
    }

    @Override
    public boolean  addWages(String id,Map<String, Object> map){
        return adminDao.addWages(id,map);
    };

    @Override
    public boolean checkcollegeID(String id, College college ){
        return adminDao.checkcollegeID(id,college);
    };

    @Override
    public boolean  addCollegeed(String id,College college){
        return adminDao.addCollegeed(id,college);
    };

    @Override
    public boolean  updateCollege(String id,College college){
        return adminDao.updateCollege(id,college);
    };

    @Override
    public List<Salary> findCheckinginByNameType(String id, Map<String,Object> map){

        return adminDao.findCheckinginByNameType(id,map);
    }
    @Override
    public List<Salary> findCheckinginByName(String id, Map<String,Object> map){

        return adminDao.findCheckinginByName(id,map);
    }
    @Override
    public List<Salary> findCheckinginByType(String id, Map<String,Object> map){

        return adminDao.findCheckinginByType(id,map);
    }

    @Override
    public boolean  addCheckingin(String id,Salary salary){
        return adminDao.addCheckingin(id,salary);
    };

    @Override
    public boolean  editCheckingined(String id,Salary salary){
        return adminDao.editCheckingined(id,salary);
    };

    @Override
    public boolean  removeCheckingin(String id,Salary salary){
        return adminDao.removeCheckingin(id,salary);
    };

    @Override
    public List<Teacher> findByNameVacate(String id, Map<String,Object> map){

        return adminDao.findByNameVacate(id,map);
    }

    @Override
    public List<Teacher> findByNameVacate1(String id, Map<String,Object> map){

        return adminDao.findByNameVacate1(id,map);
    }
    @Override
    public Integer getCountByNameVacate(String id,Map<String,Object> map){
        return  adminDao.getCountByNameVacate(id,map);
    };
    public List<Teacher> findByPagingVacate(String id, Map<String,Object> map){

        return adminDao.findByPagingVacate(id,map);
    }

    @Override
    public Integer getCountVacate(String id,Map<String,Object> map){
        return  adminDao.getCountVacate(id,map);
    };

    @Override
    public boolean  editVacate(String id,Teacher teacher){
        return adminDao.editVacate(id,teacher);
    };


    public List<Teacher> findByNameBonus(String id, Map<String,Object> map){

        return adminDao.findByNameBonus(id,map);
    }

    @Override
    public Integer getCountByNameBonus(String id,Map<String,Object> map){
        return  adminDao.getCountByNameBonus(id,map);
    };
    public List<Teacher> findByPagingBonus(String id, Map<String,Object> map){

        return adminDao.findByPagingBonus(id,map);
    }

    @Override
    public Integer getCountBonus(String id,Map<String,Object> map){
        return  adminDao.getCountBonus(id,map);
    };

    @Override
    public boolean  addBonused(String id,Teacher teacher){
        return adminDao.addBonused(id,teacher);
    };
    @Override
    public boolean  editBonused(String id,Teacher teacher){
        return adminDao.editBonused(id,teacher);
    };

    @Override
    public Integer getCountMoneyleave(String id,Map<String,Object> map){
        return  adminDao.getCountMoneyleave(id,map);
    };
    @Override
    public Integer getCountMoneyget(String id,Map<String,Object> map){
        return  adminDao.getCountMoneyget(id,map);
    };
    @Override
    public Integer getCountMoney(String id,Map<String,Object> map){
        return  adminDao.getCountMoney(id,map);
    };
    @Override
    public String getState(String id,Map<String,Object> map){
        return  adminDao.getState(id,map);
    };

    @Override
    public boolean  updateContract(String id,Teacher teacher){
        return adminDao.updateContract(id,teacher);
    };

}
